<template>
  <footer class="footer">
    <span class="todo-count">剩余<strong>{{len}}</strong></span>
    <ul class="filters">
      <li>
        <a  href="javascript:;" :class="{selected : getSel === 'all'}" @click="$emit('harry','all')">全部</a>
      </li>
      <li>
        <a href="javascript:; " :class="{selected : getSel === 'no'}" @click="$emit('harry','no')">未完成</a>
      </li>
      <li>
        <a href="javascript:; " :class="{selected : getSel === 'yes'}" @click="$emit('harry','yes')">已完成</a>
      </li>
    </ul>
    <button class="clear-completed" @click="$emit('delb')">清除已完成</button>
  </footer>
</template>

<script>
export default {
  props: {
    getSel: String,
    len:Number
  }
}
</script>